//
//  UILabel+Extension.swift
//  SHWeibo2.0
//
//  Created by 黄礼潮 on 16/2/24.
//  Copyright © 2016年 黄礼潮. All rights reserved.
//

import UIKit


extension UILabel {

    convenience init(cztitle title:String,
        color:UIColor = UIColor.darkGrayColor(),
        fontSize:CGFloat = 14,
        alignment: NSTextAlignment = .Left) {
        
        self.init()
    
        self.text = title
        self.textColor = color
        self.numberOfLines = 0
        self.textAlignment = alignment
        self.font = UIFont.systemFontOfSize(fontSize)    
        sizeToFit()
    }

}